package com.ktjy.pojo;

import java.io.Serial;
import java.io.Serializable;

/**
 * 入库记录实体类
 *
 * @author LILIBO
 * @since 2025-10-31
 */
public class StorageRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private long id;

    /**
     * 入库记录编码
     */
    private String srCode;

    /**
     * 供货商ID
     */
    private long supplierId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品描述
     */
    private String goodsDesc;

    /**
     * 商品单位
     */
    private String goodsUnit;

    /**
     * 入库数量
     */
    private double goodsCount;

    /**
     * 入库商品总额
     */
    private double totalAmount;

    /**
     * 支付状态（1：未支付 2：已支付）
     */
    private int payStatus;

    /**
     * 创建人id
     */
    private long createdUserId;

    /**
     * 创建时间
     */
    private String createdTime;

    /**
     * 修改人id
     */
    private long updatedUserId;

    /**
     * 修改时间
     */
    private String updatedTime;

    /**
     * 无参构造方法
     */
    public StorageRecord() {
    }

    /**
     * 带参构造方法
     */
    public StorageRecord(String srCode, long supplierId, String goodsName, String goodsDesc, String goodsUnit, double goodsCount, double totalAmount, int payStatus, long createdUserId, String createdTime, long updatedUserId, String updatedTime) {
        this.srCode = srCode;
        this.supplierId = supplierId;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }

    /**
     * 全参构造方法
     */
    public StorageRecord(long id, String srCode, long supplierId, String goodsName, String goodsDesc, String goodsUnit, double goodsCount, double totalAmount, int payStatus, long createdUserId, String createdTime, long updatedUserId, String updatedTime) {
        this.id = id;
        this.srCode = srCode;
        this.supplierId = supplierId;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }

    /**
     * toString方法
     */
    @Override
    public String toString() {
        return "StorageRecord{" +
                "id=" + id +
                ", srCode='" + srCode + '\'' +
                ", supplierId=" + supplierId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsUnit='" + goodsUnit + '\'' +
                ", goodsCount=" + goodsCount +
                ", totalAmount=" + totalAmount +
                ", payStatus=" + payStatus +
                ", createdUserId=" + createdUserId +
                ", createdTime='" + createdTime + '\'' +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime='" + updatedTime + '\'' +
                "}";
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getSrCode() {
        return srCode;
    }

    public void setSrCode(String srCode) {
        this.srCode = srCode;
    }

    public long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(long supplierId) {
        this.supplierId = supplierId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public double getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(double goodsCount) {
        this.goodsCount = goodsCount;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public int getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(int payStatus) {
        this.payStatus = payStatus;
    }

    public long getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(long createdUserId) {
        this.createdUserId = createdUserId;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public long getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(long updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

}
